<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Returns information about the passed in value with data types, reference counts, etc</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.runkit7-superglobals.html">« runkit7_superglobals</a></li>
      <li style="float: right;"><a href="book.uopz.html">uopz »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ref.runkit7.html">runkit7 函数</a></li>
    <li>Returns information about the passed in value with data types, reference counts, etc</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.runkit7-zval-inspect" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">runkit7_zval_inspect</h1>
  <p class="verinfo">(PECL runkit7 &gt;= Unknown)</p><p class="refpurpose"><span class="refname">runkit7_zval_inspect</span> &mdash; <span class="dc-title">Returns information about the passed in value with data types, reference counts, etc</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.runkit7-zval-inspect-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>runkit7_zval_inspect</strong></span>(<span class="methodparam"><span class="type">string</span> <code class="parameter">$value</code></span>): <span class="type">array</span></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.runkit7-zval-inspect-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt>
<code class="parameter">value</code></dt>

    <dd>

     <p class="para">
      The value to return the representation of
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.runkit7-zval-inspect-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   The array returned by this function contains the following elements:
   <ul class="simplelist">
    <li class="member"><code class="literal">address</code></li>
    <li class="member"><code class="literal">refcount</code> (optional)</li>
    <li class="member"><code class="literal">is_ref</code> (optional)</li>
    <li class="member"><code class="literal">type</code></li>
   </ul>
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.runkit7-zval-inspect-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-609">
    <p><strong>示例 #1 <span class="function"><strong>runkit7_zval_inspect()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br />$var&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">DateTime</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">runkit7_zval_inspect</span><span style="color: #007700">(</span><span style="color: #0000BB">$var</span><span style="color: #007700">));<br /><br /></span><span style="color: #0000BB">$var&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">runkit7_zval_inspect</span><span style="color: #007700">(</span><span style="color: #0000BB">$var</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

    <div class="example-contents"><p>以上例程会输出：</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
array(4) {
  [&quot;address&quot;]=&gt;
  string(14) &quot;0x7f45ab21b1e0&quot;
  [&quot;refcount&quot;]=&gt;
  int(2)
  [&quot;is_ref&quot;]=&gt;
  bool(false)
  [&quot;type&quot;]=&gt;
  int(8)
}

array(2) {
  [&quot;address&quot;]=&gt;
  string(14) &quot;0x7f45ab21b1e0&quot;
  [&quot;type&quot;]=&gt;
  int(4)
}
</pre></div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.runkit7-zval-inspect-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><a href="language.references.html" class="link">References Explained</a></li>
    <li class="member"><a href="http://derickrethans.nl/php_references_article.php" class="link external">&raquo;&nbsp;References Explained (by Derick Rethans)</a></li>
   </ul>
  </p>
 </div>

</div></div></div></body></html>